﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Xml;
using EquipSecs300;
using SecsEquip;

namespace EquipSecs300
{
    public partial class SubstrateTrackingView : CMyFormEx
    {
        public GEM_SubstrateTracking GEMSubstrateTracking { get; set; }
        SePresentData sePresentDatanew = new SePresentData();

        public SubstrateTrackingView( )
        {
            m_pViewName = "Substrate Tracking";
            InitializeComponent();
        }
        public override void UpdateData()
        {
            GEMSubstrateTracking = secsEquipHelper.SubstrateTracking;
        }

        // 获取晶圆ID
        string GetWaferID()
        {
            return textBoxWaferID.Text;
        }

        // 操作
        private void BtnProcessing_Click(object sender, EventArgs e)
        {
            GEMSubstrateTracking.Ev_BtnProcessing_R();
            sePresentDatanew.WAFERID = GetWaferID();
            GEMSubstrateTracking.Ev_WaferProcessing(GetWaferID(), sePresentDatanew);
        }

        private void BtnProcessed_Click(object sender, EventArgs e)
        {
            GEMSubstrateTracking.Ev_WaferProcessed_R();
            sePresentDatanew.WAFERID = GetWaferID();
            GEMSubstrateTracking.Ev_WaferProcessed(GetWaferID(), sePresentDatanew);
        }

        private void BtnLost_Click(object sender, EventArgs e)
        {
            GEMSubstrateTracking.Ev_WaferLost_R();
            sePresentDatanew.WAFERID = GetWaferID();
            GEMSubstrateTracking.Ev_WaferLost(GetWaferID(), sePresentDatanew);
        }

    }
}
